<template>
  <div>
    <el-container>
      <el-header>
        <el-card style="position: relative">
          <el-breadcrumb separator="/">
            <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item><a href="/">订单</a></el-breadcrumb-item>
            <el-breadcrumb-item>退换货申请</el-breadcrumb-item>
          </el-breadcrumb>
          <div style="position: absolute;right: 20px;top: 8px">
            <el-dropdown trigger="click">
  <span class="el-dropdown-link" style="cursor: pointer;
            color: #409EFF;">
      <img src="http://macro-oss.oss-cn-shenzhen.aliyuncs.com/mall/images/20180607/timg.jpg"
           style="width: 40px;height: 40px;border-radius: 10px;">
  <i class="el-icon-arrow-down el-icon--right"></i></span>
              <el-dropdown-menu slot="dropdown">
                <el-dropdown-item>
                  <a style="text-decoration: none" href="/">首页</a>
                </el-dropdown-item>
                <el-dropdown-item>
                  <a style="text-decoration: none" href="/">退出</a>
                </el-dropdown-item>
              </el-dropdown-menu>
            </el-dropdown>
          </div>
        </el-card>
      </el-header>
      <el-main>
        <el-card style="position: relative; padding: 20px;display: block">
          <span>
            <i class="el-icon-search"></i>筛选搜索
          </span>
          <el-form :inline="true" :model="formInline" class="demo-form-inline" style="margin-top: 20px">
            <el-form-item style="position: relative;margin: -50px 0 0 800px">
              <el-button @click="onSubmit">重置</el-button>
              <el-button type="primary">查询搜索</el-button>
            </el-form-item>
            <el-form-item label="输入搜索:">
              <el-input v-model="formInline.user" placeholder="服务单号"></el-input>
            </el-form-item>
            <el-form-item label="处理状态:">
              <el-select v-model="formInline.region" placeholder="全部">
                <el-option label="待处理" value="shanghai"></el-option>
                <el-option label="退货中" value="beijing"></el-option>
                <el-option label="已完成" value="beijing"></el-option>
                <el-option label="已拒绝" value="beijing"></el-option>
              </el-select>
            </el-form-item>
            <el-form-item label="申请时间">
              <el-col :span="11">
                <el-form-item prop="date1">
                  <el-date-picker type="date" placeholder="请选择时间" v-model="ruleForm.date1" style="width: 200px;"></el-date-picker>
                </el-form-item>
              </el-col>
            </el-form-item>
            <el-form-item label="操作人员:" >
              <el-input v-model="formInline.user" placeholder="全部"></el-input>
            </el-form-item>
            <el-form-item label="处理时间" >
              <el-col :span="11">
                <el-form-item prop="date2">
                  <el-date-picker type="date" placeholder="请选择时间" v-model="ruleForm.date1" style="width: 200px;"></el-date-picker>
                </el-form-item>
              </el-col>
            </el-form-item>
          </el-form>
        </el-card>
        <el-card style="position: relative;margin-top: 20px">
          <span>
            <i class="el-icon-notebook-2"></i>数据列表
          </span>
        </el-card>
        <template>
          <el-table :data="tableData" border style="width: 100%;margin-top: 20px">
            <el-table-column type="selection" width="80" align="center"></el-table-column>
            <el-table-column prop="date" label="服务单号" width="140" align="center"></el-table-column>
            <el-table-column prop="name" label="申请时间" width="120" align="center"></el-table-column>
            <el-table-column prop="name" label="用户账号" width="140" align="center"></el-table-column>
            <el-table-column prop="name" label="退款金额" width="160" align="center"></el-table-column>
            <el-table-column prop="name" label="申请状态" width="160" align="center"></el-table-column>
            <el-table-column prop="name" label="处理时间" width="160" align="center"></el-table-column>
            <el-table-column prop="address" label="操作" align="center">
              <el-button>查看详情</el-button>
            </el-table-column>
          </el-table>
        </template>
      </el-main>
      <el-footer style="position: relative;top: 10px">
          <div style="position: relative;left: 0;top: 0;margin-top: 10px">
            <div style="position: absolute;right: 150px">
              <span style="font-size: 15px">共5条
            <template>
              <el-select v-model="val" filterable placeholder="10条/页" style="text-align: center; text-align-last: center; margin-right: 20px">
                <el-option
                    v-for="item in options"
                    :key="item.val"
                    :label="item.label"
                    :value="item.val">
                </el-option>
              </el-select>
            </template>
          <el-input-number v-model="num" @change="handleChange" :min="1" :max="10" style="width: 130px;height: 20px;">
          </el-input-number></span>
            </div>
                <div style="position: absolute;right: 0">
                  <span>前往第:
                    <el-input style="width: 50px;height: 20px"
                      placeholder="1" v-model="input">
                    </el-input>
                  <span style="font-size:15px">页</span></span>
              </div>
           </div>
      </el-footer>
    </el-container>
  </div>
</template>

<script>
  export default {
    data() {
      return {
        tableData: [{
          date: '2016-05-02',
          name: '王小虎',
          address: '上海市'
        }, {
          date: '2016-05-04',
          name: '王小虎',
          address: '上海市'
        }, {
          date: '2016-05-01',
          name: '王小虎',
          address: '上海市'
        }, {
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市'
        },{
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市'
        },{
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市'
        },{
          date: '2016-05-03',
          name: '王小虎',
          address: '上海市'
        }
        ],
        ruleForm:{
          date1:'',
          date2:'',
        },
        rules:{
          date1: [
            { type: 'date', required: true, message: '请选择日期', trigger: 'change' }
          ],
          date2:[
            { type: 'date', required: true, message: '请选择日期', trigger: 'change' }
          ],
        },
        formInline: {
          user: '',
          region: ''
        }
      }
    },
    methods: {
      onSubmit() {
        console.log('submit!');
      }
    }
  }
</script>

<style scoped>

</style>